/**
 * @ClassName Test
 * @Date 2023/10/12 13:38
 * @Version 1.0
 */
public class Test1 {

    public static void main(String[] args) {
        int[] arr = {1, 123, 44, 93, 188, 73, 66, 56, 99, 50, 24, 33, 5, 7, 12, 80, 77};
        for (int i = 0; i < arr.length; i++) {
            for (int j = i + 1; j < arr.length; j++) {
                if (arr[i] + arr[j] == 100) {
                    System.out.println("所有两个数和为“100”的所有组合:"+arr[i]+" "+arr[j]);
                }
            }
        }
    }
}
